package cn.gson.crmdemo.model.vo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.gson.crmdemo.model.pojo.Address;
import cn.gson.crmdemo.model.pojo.Customer;
import cn.gson.crmdemo.model.pojo.Deliver;
import cn.gson.crmdemo.model.pojo.Getmoneyrecord;
import cn.gson.crmdemo.model.pojo.Orderdetailed;
import cn.gson.crmdemo.model.pojo.Outorder;
import cn.gson.crmdemo.model.pojo.Quotation;
import cn.gson.crmdemo.model.pojo.Returne;
import cn.gson.crmdemo.model.pojo.Salesopportunity;

@Entity
@Table(name = "orders")
public class OrderAddressSalesopportunityVo {
	@Id
	@Column(name="o_id")
	private int oId;

	@Column(name="o_bstate")
	private int oBstate;

	private int o_checkState;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="o_date")
	private Date oDate;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="o_datelast")
	private Date oDatelast;

	@Column(name="o_dstate")
	private int oDstate;

	@Column(name="o_dsum")
	private BigDecimal oDsum;

	@Column(name="o_emp_name")
	private String oEmpName;

	@Column(name="o_getsum")
	private BigDecimal oGetsum;

	@Column(name="o_gprofit")
	private BigDecimal oGprofit;

	private int o_isorNotUse;

	@Column(name="o_no")
	private String oNo;

	@Column(name="o_paytype")
	private int oPaytype;

	@Column(name="o_remark")
	private String oRemark;

	@Column(name="o_state")
	private int oState;

	@Column(name="o_sum")
	private BigDecimal oSum;

	@Column(name="o_testgprofit")
	private BigDecimal oTestgprofit;

	@Column(name="o_title")
	private String oTitle;

	@Column(name="a_id")
	private int address;

	@Column(name="customer_id")
	private int customer;

	@Column(name="sale_id")
	private int salesopportunity;
	
	@Column(name="quotation_id")
	private int quotation;

	public int getoId() {
		return oId;
	}

	public void setoId(int oId) {
		this.oId = oId;
	}

	public int getoBstate() {
		return oBstate;
	}

	public void setoBstate(int oBstate) {
		this.oBstate = oBstate;
	}

	public int getO_checkState() {
		return o_checkState;
	}

	public void setO_checkState(int o_checkState) {
		this.o_checkState = o_checkState;
	}

	public Date getoDate() {
		return oDate;
	}

	public void setoDate(Date oDate) {
		this.oDate = oDate;
	}

	public Date getoDatelast() {
		return oDatelast;
	}

	public void setoDatelast(Date oDatelast) {
		this.oDatelast = oDatelast;
	}

	public int getoDstate() {
		return oDstate;
	}

	public void setoDstate(int oDstate) {
		this.oDstate = oDstate;
	}

	public BigDecimal getoDsum() {
		return oDsum;
	}

	public void setoDsum(BigDecimal oDsum) {
		this.oDsum = oDsum;
	}

	public String getoEmpName() {
		return oEmpName;
	}

	public void setoEmpName(String oEmpName) {
		this.oEmpName = oEmpName;
	}

	public BigDecimal getoGetsum() {
		return oGetsum;
	}

	public void setoGetsum(BigDecimal oGetsum) {
		this.oGetsum = oGetsum;
	}

	public BigDecimal getoGprofit() {
		return oGprofit;
	}

	public void setoGprofit(BigDecimal oGprofit) {
		this.oGprofit = oGprofit;
	}

	public int getO_isorNotUse() {
		return o_isorNotUse;
	}

	public void setO_isorNotUse(int o_isorNotUse) {
		this.o_isorNotUse = o_isorNotUse;
	}

	public String getoNo() {
		return oNo;
	}

	public void setoNo(String oNo) {
		this.oNo = oNo;
	}

	public int getoPaytype() {
		return oPaytype;
	}

	public void setoPaytype(int oPaytype) {
		this.oPaytype = oPaytype;
	}

	public String getoRemark() {
		return oRemark;
	}

	public void setoRemark(String oRemark) {
		this.oRemark = oRemark;
	}

	public int getoState() {
		return oState;
	}

	public void setoState(int oState) {
		this.oState = oState;
	}

	public BigDecimal getoSum() {
		return oSum;
	}

	public void setoSum(BigDecimal oSum) {
		this.oSum = oSum;
	}

	public BigDecimal getoTestgprofit() {
		return oTestgprofit;
	}

	public void setoTestgprofit(BigDecimal oTestgprofit) {
		this.oTestgprofit = oTestgprofit;
	}

	public String getoTitle() {
		return oTitle;
	}

	public void setoTitle(String oTitle) {
		this.oTitle = oTitle;
	}

	public int getAddress() {
		return address;
	}

	public void setAddress(int address) {
		this.address = address;
	}

	public int getCustomer() {
		return customer;
	}

	public void setCustomer(int customer) {
		this.customer = customer;
	}

	public int getSalesopportunity() {
		return salesopportunity;
	}

	public void setSalesopportunity(int salesopportunity) {
		this.salesopportunity = salesopportunity;
	}

	public int getQuotation() {
		return quotation;
	}

	public void setQuotation(int quotation) {
		this.quotation = quotation;
	}

	public OrderAddressSalesopportunityVo(int oId, int oBstate, int o_checkState, Date oDate, Date oDatelast,
			int oDstate, BigDecimal oDsum, String oEmpName, BigDecimal oGetsum, BigDecimal oGprofit, int o_isorNotUse,
			String oNo, int oPaytype, String oRemark, int oState, BigDecimal oSum, BigDecimal oTestgprofit,
			String oTitle, int address, int customer, int salesopportunity, int quotation) {
		super();
		this.oId = oId;
		this.oBstate = oBstate;
		this.o_checkState = o_checkState;
		this.oDate = oDate;
		this.oDatelast = oDatelast;
		this.oDstate = oDstate;
		this.oDsum = oDsum;
		this.oEmpName = oEmpName;
		this.oGetsum = oGetsum;
		this.oGprofit = oGprofit;
		this.o_isorNotUse = o_isorNotUse;
		this.oNo = oNo;
		this.oPaytype = oPaytype;
		this.oRemark = oRemark;
		this.oState = oState;
		this.oSum = oSum;
		this.oTestgprofit = oTestgprofit;
		this.oTitle = oTitle;
		this.address = address;
		this.customer = customer;
		this.salesopportunity = salesopportunity;
		this.quotation = quotation;
	}

	public OrderAddressSalesopportunityVo() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "OrderAddressSalesopportunityVo [oId=" + oId + ", oBstate=" + oBstate + ", o_checkState=" + o_checkState
				+ ", oDate=" + oDate + ", oDatelast=" + oDatelast + ", oDstate=" + oDstate + ", oDsum=" + oDsum
				+ ", oEmpName=" + oEmpName + ", oGetsum=" + oGetsum + ", oGprofit=" + oGprofit + ", o_isorNotUse="
				+ o_isorNotUse + ", oNo=" + oNo + ", oPaytype=" + oPaytype + ", oRemark=" + oRemark + ", oState="
				+ oState + ", oSum=" + oSum + ", oTestgprofit=" + oTestgprofit + ", oTitle=" + oTitle + ", address="
				+ address + ", customer=" + customer + ", salesopportunity=" + salesopportunity + ", quotation="
				+ quotation + "]";
	}
	
	
	
	
}
